package com.youhome.service.mapper;

import com.youhome.service.model.Report;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ReportMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Report record);

    int insertSelective(Report record);

    Report selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Report record);

    int updateByPrimaryKey(Report record);

    List<Report> selectByUserId(Long userId);

    Report selectByHouseIDAndUserIDAndType(Report record);

    int updateStatus(Report record);
}